package www.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import www.dao.SqlStudentDao;
import www.dao.StudentDao;
import www.domain.Student;
import www.service.SqlStudentService;


@Service
public class SqlStudentSqlImpl implements SqlStudentService {

    private SqlStudentDao sqlStudentDao = new SqlStudentDao();

    @Override
    public Student findStudentById(String id){
        try {
            return sqlStudentDao.findStudentById(id);
        }catch (Exception e){
            throw new RuntimeException(e);
        }

    }
}
